package com.hospital.config;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.AnnotationBeanNameGenerator;
import org.springframework.context.annotation.Configuration;

/**
 * @description：
 * @author：zou
 * @date：2021/9/22 14:54
 * @versions：v1.0
 */

@Configuration
public class MyBatisNameGenerator extends AnnotationBeanNameGenerator {

    @Override
    protected String buildDefaultBeanName(BeanDefinition definition) {

        //全限定类名
        String beanClassName = definition.getBeanClassName();

        //返回全限定类名
        return beanClassName;

    }

}
